package com.diapoclic.entitybean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;

public class User {

	
    private int idUser;
    private Date dateLastConnect=new Date();
    private Date dateRegistration=new Date();
    private String firstnameUser;
    private String login;
    private String mail;
    private String nameUser;
    private String password;

   private List<Document> documents = new ArrayList<Document>();
   //  private Set<Folder> folders;
   // private Set<FolderShared> folderShareds;
   // private Set<Friend> friends;

    public User(){}
    
    public User(String newName, String newFirstname, String newMail, String newPassword, String newLogin) {
    	this.firstnameUser=newFirstname;
    	this.login=newLogin;
    	this.mail=newMail;
    	this.nameUser=newName;
    	this.password=newPassword;
    
    }

    public int getIdUser() {
            return this.idUser;
    }

    public void setIdUser(int idUser) {
            this.idUser = idUser;
    }

    public Date getDateLastConnect() {
            return this.dateLastConnect;
    }

    public void setDateLastConnect(Date dateLastConnect) {
            this.dateLastConnect = dateLastConnect;
    }

    public Date getDateRegistration() {
            return this.dateRegistration;
    }

    public void setDateRegistration(Date dateRegistration) {
            this.dateRegistration = dateRegistration;
    }

    public String getFirstnameUser() {
            return this.firstnameUser;
    }

    public void setFirstnameUser(String firstnameUser) {
            this.firstnameUser = firstnameUser;
    }

    public String getLogin() {
            return this.login;
    }

    public void setLogin(String login) {
            this.login = login;
    }

    public String getMail() {
            return this.mail;
    }

    public void setMail(String mail) {
            this.mail = mail;
    }

    public String getNameUser() {
            return this.nameUser;
    }

    public void setNameUser(String nameUser) {
            this.nameUser = nameUser;
    }

    public String getPassword() {
            return this.password;
    }

    public void setPassword(String password) {
            this.password = password;
    }

    
    
    public String toString()
    {
    	String S=new String();
    	S="<br/> id : " +this.idUser +" <br/> Name : " +this.nameUser + "<br/> First Name : " + this.firstnameUser;
    	//S=S+"<br/>Mail : " + this.mail+"<br/> password : " +this.password + "<br/> login : " + this.login;
    	//S=S+"<br/> Date regitration : " + this.dateRegistration.toString()+"<br/> Date last connect : "+ this.dateLastConnect.toString()+"\n";
		return S ;
    	
    }
    
    
  
    public List<Document> getDocuments() {
            return this.documents;
    }

    public void setDocuments(List<Document> documents) {
            this.documents = documents;
    }
  /*  
    public Set<Folder> getFolders() {
            return this.folders;
    }

    public void setFolders(Set<Folder> folders) {
            this.folders = folders;
    }
    
    public Set<FolderShared> getFolderShareds() {
            return this.folderShareds;
    }

    public void setFolderShareds(Set<FolderShared> folderShareds) {
            this.folderShareds = folderShareds;
    }
    
    public Set<Friend> getFriends() {
            return this.friends;
    }

    public void setFriends(Set<Friend> friends) {
            this.friends = friends;
    }
*/    
	
	
}
